package com.dinglian.ots.service;

import com.dinglian.ots.dao.model.User;
import com.dinglian.ots.vo.user.BrandLoginVo;
import com.dinglian.ots.vo.user.LoginByPasswordVo;
import com.dinglian.ots.vo.user.LoginVo;
import com.dinglian.ots.vo.user.UserVo;

/**
 * @author wangbo
 */
public interface UserService {

    /**
     * 通过用户名获取用户
     * @param username
     * @return
     */
    UserVo getUserByUserName(String username);

    /**
     * 品牌登录
     * @param brandLoginVo
     * @return
     */
    UserVo brandLogin(BrandLoginVo brandLoginVo);

    /**
     * 退出登录
     */
    void logout();

    /**
     * 再次获取用户信息
     * @param sessionToken
     * @return
     */
    UserVo getUserInfoAgain(String sessionToken);
}
